#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string>
#include <regex>
#include <math.h>
#include <samplerate.h>
#include "Config\Preferences.h"
#include "AudioFile.h"
#include "Helmholtz.h"
#include "sigmundcpp.h"
extern int blockSize;
//#define blockSize blockSize // <-- minimum hop size
#define OVERLAP  8096 //--< you do this ?
#define MAXFREQ 1000.    // default maximum frequency for reporting pitch result

#define RANGE_LO 0.98
#define RANGE_HI 1.02

#define MaxNameFile 2000
#define SIZE_MIDI 128

float processFile(const char *path, int frameSize, float initialFrequency, int analysisChannel);
char** loadfile(const char *path, int &lines);
double mtof(const char *midinote);
double mtofoffset(const char * midinote, int offset);
void writelof(char* path, Preferences* config, char* name = "PitchDetectorLog.txt");